package com.todod.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.todod.interceptor.LoginInterceptor;

@Configuration
public class SaTokenConfigure implements WebMvcConfigurer {

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		// 加载登录适配器
		registry.addInterceptor(new LoginInterceptor()).excludePathPatterns("/sso/*");
	}
}
